import  {xsEntity} from './base.entity';
import { Column ,Entity, OneToMany} from 'typeorm';
import { ItemEntity } from './item.entity';

/**
 * 描述
 */
@Entity()
export class ModelEntity extends xsEntity {
  @Column({ comment: '标题' })
  title: string;
  @Column({ comment: '标题' ,default:null })
  Pid: number;
  @Column({ comment: '类型' ,default:null })
  type: number;
  @Column({ comment: '类型' ,default:null })
  banner: string;

  @OneToMany(() => ItemEntity, ItemEntity => ItemEntity.Pid)
  item: ItemEntity[];

}
